package com.pkk.components.util.email.model;

import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

/**
 * @description: 发件人配置
 * @author: peikunkun
 * @create: 2018-09-08 15:11
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class EmailProperties implements Serializable {
    private static final long serialVersionUID = 6305201010812209271L;

    /**
     * 协议
     */
    private String protocol = "smtp";
    /**
     * 发送服务器主机
     */
    private String host     = "smtp.sina.com";
    /**
     * 发送人的邮箱
     */
    private String sendName = "kunzaikj@sina.com";
    /**
     * 发送的端口
     */
    private String sendPort = "465";
    /**
     * 用户账号
     */
    private String userName = "kunzaikj";
    /**
     * 用户密码
     */
    private String userPwd  = "kunzaikj";


    public EmailProperties sendConfigModel() {
        return this;
    }

    public static void main(String[] args) {
        System.out.println(new EmailProperties().sendConfigModel());
    }

}
